import request from '@/utils/request'
// -------- 项目类型 --------

let BASE_ADDRESS = 'work/projectNeeds'

//分页查询  /work/projectNeeds/list
export const getProjectNeedsListApi = (params) =>{
    return request({
        url: `${BASE_ADDRESS}/list`,
        method: "get",
        params
    })
}

// 添加项目需求 /work/projectNeeds/addlist
export const addProjectNeedsApi = (data) =>{
    return request({
        url: `${BASE_ADDRESS}/addlist`,
        method: "post",
        data
    })
}

// 修改项目需求 /work/projectNeeds/editList
export const editProjectNeedsApi = (data) =>{
    return request({
        url: `${BASE_ADDRESS}/editList`,
        method: "put",
        data
    })
}

//删除项目需求 /work/projectNeeds/remove/{id}
export const removeProjectNeedsApi = (id) =>{
    return request({
        url: `${BASE_ADDRESS}/remove/${id}`,
        method: 'delete',
    })
}